<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>运单查询</title>
    <!-- 移动设备支持 -->
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link href="css/style.css" rel="stylesheet" type="text/css">
    <script src="jquery-1.8.3.min.js"></script>
    <script src="js/jquery-1.11.2.min.js"></script>
    <script src="js/jquery-1.7.2.min.js"></script>
    <script src="js/fixed.js"></script>
</head>
<body>

<div class="bg_div">
    <div class="about_main" id="chaxun">
        <div class="about_title">
            <span style="font-size:26px;">货物查询</span>
            <i style="float: right;font-size: 24px;color: #DBD9DA;font-weight: bold;">zs56</i>
            <hr style="border:1px solid #eee;">
        </div>
        <div class="branchnr w1040 mc">
            <div class="own_a" style="margin-top: 30px">
                <div class="own_x">
                    <form action="" id="form1" method="get">
                        <input type="text" id="code" class="txt" name="code" value="<?php  ?>"  placeholder="输入运单号" >
                        <button type="submit"  class="chaxun" value="" id="chaxunlist" name="chaxunlist">
                        </button>
                    </form>
                </div>
            </div>






<?php

if(!empty($_GET['code'])){
    $code=$_GET['code'];

    $client = new SoapClient("http://121.41.41.169:8080/ToyaService.asmx?WSDL");
    $yd_list=array();
    //读取变量
    $param['AppKey']='151d212ca1fe4529c02d6abc';
    $param['Alias']='tytms';
    $param['MethodName']="ws_Broker_Invoice_Trace_GetTraceByInvoiceCodeAndCompanyCode @CompanyCode='wxzs',@InvoiceCode='".$code."'";
    $param['OptType']="select";


    $p = $client->OptMethod($param);
    $list= json_decode(json_encode($p),TRUE);

    $list= json_decode($list['OptMethodResult'],TRUE);

    $list=$list['Data'];



    echo '<div class="own_list">';
    foreach( $list as $key => $value){
        print '<div class="li">

                           <strong style="color:#666">';
        if(!empty($value[0])){ print $value[0];}

        print '</strong><em></em><p style="color:#666">';
        if(!empty($value[1])){ print $value[1];}

        print '</p></div>';

    }

    print '</ul>';





}



?>




<div style="clear:both"></div>

</div>
</div>
</div>
<!--<include file="Public/inc_footer" />-->
</body>
<script type="text/javascript">$("#fixed").smartFloat();</script>
</html>
